package cm.day10;

import java.io.*;

public class Test1 {
    public static void main(String[] args) {
        //
        BufferedInputStream bis= null;
        BufferedOutputStream bos= null;
        try {
            bis = new BufferedInputStream(new FileInputStream("d:/aaa/123.jpeg"));
            //
            bos = new BufferedOutputStream(new FileOutputStream("d:/aaa/456.jpeg"));
            int len=-1;
            while ((len=bis.read())!=-1){
                bos.write(len);
            }
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
        }
        try {
            bos.close();
            bis.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
